import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class MenusService {
  constructor() {}
  Menus = [
    {
      level: 1,
      title: 'route.home',
      icon: 'home',
      open: false,
      link: 'home',
      selected: false,
      disabled: false
    },
    {
      level: 1,
      title: 'route.count',
      icon: 'pie-chart',
      open: false,
      sub: 'count',
      selected: false,
      disabled: false,
      children: [
        {
          level: 2,
          title: 'route.playersData',
          icon: 'bars',
          open: false,
          sub: 'count',
          selected: false,
          disabled: false,
          children: [
            {
              level: 3,
              title: 'route.previewPlayersData',
              link: 'playersData/previewPlayersData',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '用户留存',
              link: 'playersData/playersRetention',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '设备留存',
              link: 'playersData/devicesRetention',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '活跃用户等级',
              link: 'playersData/activePlayersLevel',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '在线时长分布',
              link: 'playersData/onlineTimeDistribution',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '每日在线对比',
              link: 'playersData/dailyOnlineComparison',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '在线人数',
              link: 'playersData/onlineNumber',
              selected: false,
              disabled: false
            }
          ]
        },
        {
          level: 2,
          title: '数据流失分析',
          icon: 'bars',
          open: false,
          sub: 'count',
          selected: false,
          disabled: false,
          children: [
            {
              level: 3,
              title: '流失等级',
              link: 'loseAnalysis/levelLoss',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '流失关卡',
              link: 'loseAnalysis/stageLoss',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '引导流失',
              link: 'loseAnalysis/noviceLoss',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '打点流失',
              link: 'loseAnalysis/dotLoss',
              selected: false,
              disabled: false
            }
          ]
        }
      ]
    },
    {
      level: 1,
      title: 'route.gmTool',
      icon: 'appstore',
      open: false,
      sub: 'gm',
      selected: false,
      disabled: false,
      children: [
        {
          level: 2,
          title: '玩家管理',
          icon: 'bars',
          open: false,
          sub: 'gm',
          selected: false,
          disabled: false,
          children: [
            {
              level: 3,
              title: '基本信息',
              link: 'playerManage/basicInfo',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '道具领取记录',
              link: 'playerManage/itemLog',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '玩家黑名单',
              link: 'playerManage/blackList',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '作弊玩家查询',
              link: 'playerManage/cheatLog',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '玩家反馈信息',
              link: 'playerManage/feedBackLog',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '玩家补偿',
              link: 'playerManage/playerCompensate',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '公会信息',
              link: 'playerManage/guildInfo',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: 'Sql数据查询',
              link: 'playerManage/sqlQuery',
              selected: false,
              disabled: false
            },
            {
              level: 3,
              title: '登陆记录',
              link: 'playerManage/loginLog',
              selected: false,
              disabled: false
            }
          ]
        }
      ]
    }
  ];
  menus() {
    return this.Menus;
  }
}
